package com.aiwei.tdjk.service;


import com.aiwei.tdjk.bean.Pager;
import com.aiwei.tdjk.dto.request.CustomsHandbookProductdetailPagerRequest;
import com.aiwei.tdjk.dto.response.CustomsHandbookProductdetailResponse;
import com.aiwei.tdjk.entity.CustomsHandbookProductdetail;

import java.util.List;

public interface CustomsHandbookProductdetailService {

    /**
     * 分页查询
     * @param request
     * @return
     */
    Pager<CustomsHandbookProductdetailResponse> find(CustomsHandbookProductdetailPagerRequest request);


    CustomsHandbookProductdetail get(Long id);

    /**
     * 根据手册号查询手册的项目
     * @param id
     * @return
     */
    List<CustomsHandbookProductdetail> getByCustomsHandBook(Long id);



    /**
     * 根据手册主键、规格，查询手册的具体项目
     * @param handBookId
     * @param standard
     * @return
     */
    CustomsHandbookProductdetail getByHandBookIdAndSpecifications(long handBookId, String standard);

    /**
     * 新增
     * @param customsHandbookProductdetail
     * @return
     */
    int add(CustomsHandbookProductdetail customsHandbookProductdetail);

    /**
     * 更新
     * @param customsHandbookProductdetail
     */
    void update(CustomsHandbookProductdetail customsHandbookProductdetail);

    /**
     * 删除
     * @param id
     */
    void delete(Long id);

    void delete(Long[] ids);



}
